using System;
using System.Collections.Generic;

namespace Hymans.Charles.JAudit.SyntaxNodes
{
	public class JavaFile
	{
		public IList<JavaType> Types
		{
			get;
			private set;
		}

		public JavaFile(IList<JavaType> types)
		{
			this.Types = types;
		}
		
		public void Visit(IVisitor visitor)
		{
			foreach (JavaType type in this.Types)
			{
				type.Visit(visitor);
			}
		}
	}
}
